<?php

/**
 * Name: 系统控制器controller
 * User: Wudean
 * Date: 2018/05/16
 */
namespace App\Http\Controllers\Mapi;
use App\Http\Controllers\Controller;
use App\Services\RhymeService;
use Illuminate\Http\Request;
use App\Api\Helper\ReturnMessage;
use Illuminate\Support\Facades\Cache;

class RhymeController extends Controller
{
    /**
     * @param Request $request
     * @return \Dingo\Api\Http\Response
     * @name 获取押韵词汇
     * @user IHammer
     */
    public function getKwd(Request $request){
        $lists = RhymeService::getKwdHandle($request);
        return ReturnMessage::successArray($lists);
    }

}
